import request from '@/utils/request'

// 查询机构列表
export function getAccount(query) {
    return request({
        url: '/blwy/clear/account/list',
        method: 'get',
        params: query
    })
}

//新增账户
export function addAccount(data) {
    return request({
        url: '/blwy/clear/account/save',
        method: 'post',
        data: data
    })
}

// 删除账户
export function deleteAccount(data) {
    return request({
        url: '/blwy/clear/account/delete?id='+data,
        method: 'delete',
    })
}

//编辑获取详情
export function getAccountDetail(data) {
    return request({
        url: '/blwy/clear/account/getAccount?id='+data,
        method: 'get',
    })
}

//编辑保存
export function editAccount(data) {
    return request({
        url: '/blwy/clear/account/edit',
        method: 'put',
        data:data
    })
}

//获取认证留密url
export function getUrl(data) {
    return request({
        url: '/blwy/clear/account/getSetPasswordUrl?id='+data,
        method: 'get'
    })
}

